package com.junglone.gateway.admin.dao.impl;

import java.util.List;

import com.mongodb.client.result.DeleteResult;
import com.mongodb.client.result.UpdateResult;
import org.springframework.data.mongodb.core.query.Query;
import org.springframework.data.mongodb.core.query.Update;
import org.springframework.stereotype.Repository;

import com.junglone.gateway.admin.domain.MongoRoute;

/**
 * Description:
 * 
 * @author junglone: <a href="mailto:cjlnzb@hotmail.com">cjlnzb@hotmail.com</a>
 * @since 2021/04/04 00:20
 */
@Repository
public class MongoRouteDaoImpl extends AbstractMongoDaoImpl<MongoRoute> {

    @Override
    public MongoRoute insert(MongoRoute object) {

        return super.insert(object);
    }

    @Override
    public void save(MongoRoute object) {

        super.save(object);
    }

    @Override
    public MongoRoute findOne(Query query, Class<MongoRoute> entityClass) {

        return super.findOne(query, entityClass);
    }

    @Override
    public long count(Query query, Class<MongoRoute> entityClass) {

        // TODO Auto-generated method stub
        return 0;
    }

    @Override
    public List<MongoRoute> findAll(Query query, Class<MongoRoute> entityClass) {

        return super.findAll(query, entityClass);
    }

    @Override
    public UpdateResult update(Query query, Update update, Class<MongoRoute> entityClass) {

        return super.update(query, update, entityClass);
    }

    @Override
    public void createCollection(String collectionName) {
        // TODO Auto-generated method stub

    }

    @Override
    public DeleteResult remove(Query query, Class<MongoRoute> entityClass) {

        return super.remove(query, entityClass);
    }

}
